﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fmtx.Framework.Model;
using System.Net;

namespace PressureTest.Model
{
    public class TestResultLog:BaseBean
    {
        public TestResultLog()
        {
            ID = ObjectId.GenerateNewId().ToString();
            InTime = DateTime.Now;
        }
        [BsonId]
        public string ID { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Uname { get; set; }
        /// <summary>
        /// 授权码
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 返回状态
        /// </summary>
        public HttpStatusCode StatuCode { get; set; }
        /// <summary>
        /// 请求结果
        /// </summary>
        public string Html { get; set; }
        /// <summary>
        /// 返回错误信息
        /// </summary>
        public string Error { get; set; }
        /// <summary>
        /// 被标识错误
        /// </summary>
        public bool IsError { get; set; }
        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime InTime { get; private set; }
    }
}
